<template>
	<view class="x-wrapper">
		<view class="x-main-content">
			<view class="detail-box">
				<image src="http://www.peiyiyiliao.com/QRCodeShare/imgs/bg.png" mode="" class="bg"></image>
				<view class="content-box">
					<u-navbar :title="title" bgColor="transparent" :fixed="true" leftIconColor="#333"
						leftIconSize="42rpx" autoBack placeholder>
					</u-navbar>
					<view class="x-doctor-item">
						<view class="avatar-box">
							<u-avatar :src="item.doctorPhoto" size="120rpx"></u-avatar>
						</view>
						<view class="right-content">
							<view class="top">
								<text class="name">{{item.doctorName}}</text>
								<text class="position x-mini-tag" v-if="item.jobTitle">{{item.jobTitle}}</text>
								<view v-if="item.years">从业<span
										style="font-size: 40rpx;color:#386fff;font-weight: 600;">{{item.years}}</span>年
								</view>
							</view>
							<view class="info">{{item.departmentName}}｜{{item.hospitalName}}</view>
						</view>
					</view>
					<view class="box1">
						<span
							style="display: inline-block;height: 20rpx;border-bottom: 20rpx solid  #9bb7ff ;color: #333;font-weight: 600;">擅长</span>
						<view class="nr">
							{{item.goodAt}}
						</view>
					</view>
					<view class="box1">
						<span
							style="display: inline-block;height: 20rpx;border-bottom: 20rpx solid  #9bb7ff ;color: #333;font-weight: 600;">医生简介</span>
						<view class="nr" v-if="item.desc">
							{{item.desc}}
						</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "",
				item: ''
			}
		},
		onLoad(e) {
			this.item = JSON.parse(decodeURIComponent(e.data))

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.detail-box {
		position: relative;

		.bg {
			position: absolute;
			height: 100vh;
			width: 100%;
			top: 0;
			left: 0;
			z-index: 1;
		}

		.content-box {
			position: relative;
			z-index: 2;
		}
	}

	.x-doctor-item {
		padding: 30rpx 50rpx;
		border-radius: 18rpx;
		display: flex;

		.avatar-box {
			width: 120rpx;
			height: 120rpx;
		}

		.right-content {
			flex: 1;
			min-width: 0;
			padding-left: 25rpx;

			.top {
				margin-bottom: 20rpx;
				display: flex;
				align-items: baseline;
				position: relative;

				.name {
					font-weight: 600;
					margin-right: 10rpx;
					font-size: 42rpx;
					font-family: PingFangSC-Semibold, PingFang SC;
					font-weight: 600;
					color: #333333;
				}

				.position {
					font-size: 26rpx;
					margin-right: 30rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #386fff;
					height: 30rpx;
				}

				.x-mini-tag {
					padding: 0 15rpx;
					line-height: 30rpx;
				}
			}

			.info {
				margin-bottom: 15rpx;
				font-size: 26rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #6F7DA2;
				letter-spacing: 1px;
			}


		}
	}

	.box1 {
		background: #fff;
		border-radius: 16rpx;
		margin: 0 20rpx 20rpx 20rpx;
		padding: 30rpx;

		.bt1 {
			width: 64rpx;
			height: 43rpx;
		}

		.bt2 {
			width: 128rpx;
			height: 43rpx;
		}

		.nr {
			margin-top: 20rpx;
			font-size: 24rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #6F7DA2;
			line-height: 45rpx;
			word-break: break-all;
			letter-spacing: 2px;
		}
	}
</style>